import {DEFAULT_QUERY_OPTION, HISTORY_DEFAULT_QUERY_OPTION} from './constants';
const state = {
    domainData: {
        initData: {
            message: '',
            isFetching: false,
            brands: [],
            isDealerUser: false,
            company: {},
        },
        list: {
            isFetching: false,
            message: '',
            total: 0,
            data: []
        },
        detail: {
            isFetching: false,
            data: {}
        },
        permission: {
            isFetching: false,
            message: '',
            data: []
        },
        historyList: {
            isFetching: false,
            message: '',
            total: 0,
            data: [],
        }
    },
    appState: {
        queryCondition: DEFAULT_QUERY_OPTION,
        queryBySort: {},
        dealerInfo: {
            id: '',
            code: '',
            name: ''
        },
        historyQueryCondition: HISTORY_DEFAULT_QUERY_OPTION,
        historyQueryBySort: HISTORY_DEFAULT_QUERY_OPTION
    }
};

export default state;
